// pages/goods-category/goods-category.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    "fittop": 0,
    "bar_Height": wx.getSystemInfoSync().statusBarHeight,
    "widnowW": wx.getSystemInfoSync().screenWidth,
    TabCur: 0,

    menuList: [{
        firstTitle: "服饰",
        secondList: [{
            secondTitle: '每日上新',
            goodsList: [{
                goodsId: 'goods_id10001',
                goodsName: '女士T恤',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10002',
                goodsName: '明星好物',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10003',
                goodsName: '女士衬衫',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10004',
                goodsName: '女士风衣',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10005',
                goodsName: '半身裙',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]


          },
          {
            secondTitle: '女装',
            goodsList: [{
                goodsId: 'goods_id10006',
                goodsName: '牛仔裤',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10007',
                goodsName: '半身裙',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10008',
                goodsName: '女士衬衫',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10009',
                goodsName: '女士内衣',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10010',
                goodsName: '正装裤',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]
          },
          {
            secondTitle: '男装',
            goodsList: [{
                goodsId: 'goods_id10001',
                goodsName: '男士卫衣',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '男士T恤',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '男士衬衫',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '男士风衣',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '男士西装',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '男裤',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]
          },
          {
            secondTitle: '内衣',
            goodsList: [{
                goodsId: 'goods_id10001',
                goodsName: '男士内衣',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '女士内衣',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]
          },
          {
            secondTitle: '睡裙',
            goodsList: [{
                goodsId: 'goods_id10001',
                goodsName: '睡裙',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '睡衣',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '睡袍',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]
          },
        ]
      }, {
        firstTitle: "箱包",
        secondList: [{
            secondTitle: '每日上新',
            goodsList: [{
                goodsId: 'goods_id10001',
                goodsName: '蔻驰',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10002',
                goodsName: '凯文克莱',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10003',
                goodsName: '新秀丽',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10004',
                goodsName: '女士风衣',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10005',
                goodsName: '半身裙',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]


          },
          {
            secondTitle: '女包',
            goodsList: [{
                goodsId: 'goods_id10006',
                goodsName: '挎包',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10007',
                goodsName: '女背包',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10008',
                goodsName: '可爱手机包',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]
          },
          {
            secondTitle: '男包',
            goodsList: [{
                goodsId: 'goods_id10001',
                goodsName: '电脑包',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '钱包',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '旅行包',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '旅行箱',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]
          },
          {
            secondTitle: '内衣',
            goodsList: [{
                goodsId: 'goods_id10001',
                goodsName: '男士内衣',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '女士内衣',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]
          },
          {
            secondTitle: '睡裙',
            goodsList: [{
                goodsId: 'goods_id10001',
                goodsName: '睡裙',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '睡衣',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '睡袍',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]
          },
        ]
      }, {
        firstTitle: "美妆",
        secondList: [{
            secondTitle: '每日上新',
            goodsList: [{
                goodsId: 'goods_id10001',
                goodsName: '乳液面霜',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10002',
                goodsName: '防晒',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10003',
                goodsName: '眼霜',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10004',
                goodsName: '身体乳',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10005',
                goodsName: '雅诗兰黛',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]


          },
          {
            secondTitle: '彩妆',
            goodsList: [{
                goodsId: 'goods_id10006',
                goodsName: '粉底液',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10007',
                goodsName: '隔离打底',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10008',
                goodsName: 'BB霜',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]
          },
          {
            secondTitle: '香水',
            goodsList: [{
                goodsId: 'goods_id10001',
                goodsName: '迪奥',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '古琦',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '阿玛尼',
                goodsImg: "../../images/nav-icon-user-active.png"
              },
              {
                goodsId: 'goods_id10001',
                goodsName: '香奈儿',
                goodsImg: "../../images/nav-icon-user-active.png"
              }
            ]



          },
        ]
      }

    ]



  },
  "fitscreen": function() {
    if (this.data['widnowW'] >= 768) {
      this.setData({
        "fittop": 30
      })
    }
  },
  reachbuttom:function(e){
console.log(e)
  },
  tabSelect: function(e) {
    this.setData({
      TabCur: e.currentTarget.dataset.id,
      VerticalNavTop: (e.currentTarget.dataset.id - 1) * 50
    })
  },
  VerticalMain: function(e) {
    console.log(e.detail);
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    var that = this
    that.fitscreen()
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function() {

  }
})